home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1722 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.3 KB

  1. Path: r-l1-staff-15.scu.edu.au!user
  2. From: skershaw@scu.edu.au (Shane Kershaw)
  3. Newsgroups: comp.sys.mac.programmer,comp.sys.mac.programmer.help,comp.sys.mac.programmer.codewarrior,comp.lang.c,comp.lang.pascal.mac
  4. Subject: Re: Pascal or C++?
  5. Date: Sat, 13 Jan 1996 11:39:32 +1100
  6. Organization: Virtual Studios, Faculty of Arts, Southern Cross  University
  7. Distribution: world
  8. Message-ID: <skershaw-1301961139320001@r-l1-staff-15.scu.edu.au>
  9. References: <d7e_9512231058@linknet.ccinet.ab.ca> <dallas-3012950728570001@ppp31.atlantica.net> <daniel-3112950846190001@ts3209.slip.colostate.edu> <surgsw-0401962040100001@128.206.206.68> <4cqcnj$387@pegasus.interpac.net>
  10. NNTP-Posting-Host: r-l1-staff-15.scu.edu.au
  11.  
  12. In article <4cqcnj$387@pegasus.interpac.net>, stacys@isis.interpac.net
  13. (Stacy Sherman) wrote:
  14. >C should never be used as a first programming language, especially at 
  15. >high school level.  I got my CS degree in '91 and they were teaching most 
  16. >of the courses in Pascal and were just starting to use C.  Even now, the 
  17. >first few courses are still taught in Pascal.
  18. I agree with you here Stacy (where did you do your degree?). Our Uni has
  19. just changed all of its coding courses and removed Pascal from the
  20. curriculum entirely. Tis worriesme, especially as they included Visual
  21. Basic as an example of RAD environemnt (not, I would have thought:-). 
  22. > You want to teach them HOW to program.  Not how to program in C.  It's 
  23. > really easy to screw up & get frustrated in C.  Plus, C relies heavily on 
  24. > pointers which are a difficult concept for many people.
  25. Again I agree. I stil lthe think that best approach that can be applied
  26. here is to use the good old pencil and paper compiler for the first
  27. semester course - don't let them near a machine until they can express
  28. their intentions algorithmically, this will ultimately lead to better code
  29. and results for the students, because they won;t be fighting the
  30. have-I-got-the-right-algorithm battle whilst trying to learn the syntax
  31. and smemantics of whatever language they are using. One of the best
  32. things  I liked about my degree was that I was able to do a comparative
  33. study of languages in the same semester I had to do the cobol unit - C,
  34. Pascal, Modula2, Cobol and hypertalk (v1.2.5). In some cases what was
  35. required in the cobol unit algorithmically was also required in the comp
  36. lang unit, so I was abler to see that the algorithm didn't change, but the
  37. implementation of the algorithm might, i.e. two lines of code in c, maybe
  38. 3 in pascal (no ternary if statement) and 6 lines in cobol. It was an eye
  39. opener and has made me an advocate of algorithm first, implementation
  40. second approach to coding.
  41. > CodeWarrior academic might be a good choice, or the codewarrior starter 
  42. > kit.  They have both C and Pascal built in.  Just because it can't 
  43. > generate PPC code doesn't mean it can't be used on the PowerMac.  You can 
  44. > run the compiler on the PowerMac and any programs you create with them.  
  45. > The programs won't be native, that's all.
  46. Uum, I wansn't aware that this was the case - I use CW academic and don't
  47. have any problem generating PPC only code. The only limitation of CW
  48. academic is that you can't sell your programs - no more, no less.
  49.  
  50. Shane
  51. -- 
  52. Shane Kershaw
  53. Co-moderator of sci.psychology.research
  54. Systems Administration, Virtual Studios
  55. Southern Cross University, NSW Australia
  56.